package io.ken.im.common.domain.model;

import java.util.List;

/**
 * @author: ken
 * @description: 即时通许服务MQ接收消息模型
 * @date 2023-12-12
 **/
public class IMReceiveInfo extends TopicMessage {
    private static final long serialVersionUID = -2631343030633448645L;

    /**
     * 命令类型，IMCmdType的枚举值
     */
    private Integer cmd;

    /**
     * 发送者
     */
    private IMUserInfo sender;

    /**
     * 消息接收者列表
     */
    private List<IMUserInfo> receivers;

    /**
     * 是否回填消息发送结果
     */
    private Boolean sendResult;

    /**
     * 消息内容
     */
    private Object data;

    public IMReceiveInfo() {
    }

    public IMReceiveInfo(Integer cmd, IMUserInfo sender, List<IMUserInfo> receivers, Boolean sendResult, Object data) {
        this.cmd = cmd;
        this.sender = sender;
        this.receivers = receivers;
        this.sendResult = sendResult;
        this.data = data;
    }

    public Integer getCmd() {
        return cmd;
    }

    public void setCmd(Integer cmd) {
        this.cmd = cmd;
    }

    public IMUserInfo getSender() {
        return sender;
    }

    public void setSender(IMUserInfo sender) {
        this.sender = sender;
    }

    public List<IMUserInfo> getReceivers() {
        return receivers;
    }

    public void setReceivers(List<IMUserInfo> receivers) {
        this.receivers = receivers;
    }

    public Boolean getSendResult() {
        return sendResult;
    }

    public void setSendResult(Boolean sendResult) {
        this.sendResult = sendResult;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
